package com.duan.cwgl.service;

import com.duan.cwgl.utils.Result;
import com.duan.cwgl.entity.Bill;
import com.duan.cwgl.entity.Payway;
import com.duan.cwgl.utils.PageModel;

import java.util.List;
import java.util.Map;

/**
 * @author 断诗
 */
public interface BillService {
    int add(Bill bill);

    int update(Bill bill);

    int del(int id);


    Result<Bill> findByWhere(PageModel model);

    Result<Bill> findByWhereNoPage(Bill bill);

    List<Payway> getAllPayways();

    List<Map<String,Float>>  getMonthlyInfo(PageModel<Bill> model);

}
